home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / source / lib / chunky_lib.lha / Chunky / PutPixelFast.ass < prev    next >
Encoding:
Text File  |  2000-07-13  |  395 b   |  17 lines

  1. ; this function writes a coloured pixel into the chunky buffer
  2.  
  3. ; use this function with care, it doesn't check for bounds or if chunky array is correct
  4.  
  5. ; PutPixelFast(chunky:a0:PTR TO chunky,x:d0:LONG,y:d1:LONG,colour:d2:LONG)
  6.  
  7.     machine    mc68020
  8.  
  9.     xdef    _PutPixelFast
  10.  
  11. _PutPixelFast
  12.     movea.l    (8,a0),a1
  13.     muls.l    (a0),d1
  14.     add.l    d0,d1        ; d1 now contains position in buffer
  15.     move.b    d2,(a1,d1.l)
  16.     rts
  17.